import os

path = input('请输入你要解析的日志上级目录的路径（绝对路径）：')
daily_keyword = input('请输入你要解析的日志appid：')
file_name_list = os.listdir(path)
for file_name in file_name_list:
    my_file_name = path + '\\' + file_name
    with open(my_file_name,'r',encoding='utf-8') as f:
        read_daily = f.read()
        if f'{daily_keyword}' in read_daily:
            need_daily = my_file_name
            print(f'你需要解析的日志文件路径为：{need_daily}')
    # print(my_file_name)

